package com.zzl.study.demo.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 对话记忆属性配置类
 *
 * @author: zhangzl
 * @date: 2025/10/14 9:57
 * @version: 1.0
 */
@Data
@ConfigurationProperties(prefix = "spring.ai.memory.redis")
public class RedisMemoryProperties {

    /**
     * Redis 主机地址
     */
    private String host = "127.0.0.1";

    /**
     * Redis 端口号
     */
    private int port = 6379;

    /**
     * Redis 密码
     */
    private String password;

    /**
     * Redis 数据库索引
     */
    private int database = 0;

    /**
     * Redis 连接超时时间
     */
    private int timeout = 10000;

    /**
     * Redis 连接池大小
     */
    private int maxPoolSize = 50;

}
